Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix syntax highlighting of INI language #2217

Merged
merged 9 commits into from
Sep 15, 2022
Merged

Conversation

jmzambon
Copy link
Contributor

@jmzambon jmzambon commented Aug 26, 2022

Fix #2161: syntax highlighting of INI language doesn't parse comments present on same line.

@jmzambon
Copy link
Contributor Author

Hi everybody,
I choose this issue as an "easy hack" to enter Pygments code and logic.
Please do not hesitate to guide me were I'm wrong.

…t on same line pygments#2161

Add also support for line continuation in values and comments.
@jmzambon jmzambon changed the title Fix syntax highlighting of INI languague [#2161] Fix syntax highlighting of INI language Aug 30, 2022
Copy link
Contributor

@jeanas jeanas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with a couple nits. Thanks for contributing.

pygments/lexers/configs.py Outdated Show resolved Hide resolved
pygments/lexers/configs.py Outdated Show resolved Hide resolved
pygments/lexers/configs.py Outdated Show resolved Hide resolved
jmzambon and others added 2 commits September 14, 2022 19:01
Remove non-breaking space that make no sense.

Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
Remove non-breaking space that make no sense.

Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
@jeanas jeanas merged commit b58e855 into pygments:master Sep 15, 2022
@birdybro
Copy link

Thank you!

@jmzambon
Copy link
Contributor Author

Thanks for merging!

@Anteru Anteru added this to the 2.14.0 milestone Jan 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

syntax highlighting of INI language doesn't parse comments present on same line
4 participants